/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BounderyPack;

import MathLib.triangulation.SaveStructures.Node;
import java.util.ArrayList;

/**
 *
 * @author mark
 */
public class DBoundery {
    protected BounderyParams params;
    protected ArrayList<Node> NodeList;

    public DBoundery() {
    }

    public DBoundery(BounderyParams params, ArrayList<Node> NodeList) {
        this.params = params;
        this.NodeList = NodeList;
    }

    public ArrayList<Node> getNodeList() {
        return NodeList;
    }

    public void setNodeList(ArrayList<Node> NodeList) {
        this.NodeList = NodeList;
    }

    public BounderyParams getParams() {
        return params;
    }

    public void setParams(BounderyParams params) {
        this.params = params;
    }

    public boolean contains(int i) {
        for (int j = 0; j < NodeList.size(); j++) {
            Node node = NodeList.get(j);
            if(node.Number==i){
                return true;
            }
        }
        return false;
    }
}
